package org.djw.hrm.mapper;

import org.djw.hrm.domain.Login;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.djw.hrm.domain.MealAndLogin;

/**
 * <p>
 * 登录表 Mapper 接口
 * </p>
 *
 * @author djw
 * @since 2022-02-10
 */
public interface LoginMapper extends BaseMapper<Login> {

    /**
     * 根据用户名查询对象
     * @param username
     * @return
     */
    Login getByUsername(String username);

    /**
     * 保存MealAndLogin对象
     * @param mealAndLogin
     */
    void saveMealAndLogin(MealAndLogin mealAndLogin);
}
